/*
package com.fqcar.fqdf.zxing.android;

import android.app.Activity;
import android.app.Dialog;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v4.app.Fragment;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;

import com.fqcar.fqdf.R;


public class YYBaseFragment extends Fragment {
    public Activity mContext;
    public String activity = "";//获取子类的名称
    public YYProgresssDialog progresssDialog;

    private Dialog callDlg, messageDlg, chooseDlg, nonetDlg;
    public Handler baseHandler = new Handler() {

        @Override
        public void handleMessage(Message msg) {
            // TODO Auto-generated method stub
            handleMyMessage(msg);
            super.handleMessage(msg);
        }

    };


    public void handleMyMessage(Message msg) {
    }

    @Override
    public void onAttach(Activity activity) {
        // TODO Auto-generated method stub
        mContext = activity;
        initDialog();
        super.onAttach(activity);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // TODO Auto-generated method stub

        // initDialog();
        return super.onCreateView(inflater, container, savedInstanceState);
    }

    private void initDialog() {
        progresssDialog = new YYProgresssDialog(getActivity(),
                R.style.customProgressDialog);
        // progresssDialog.setContentView(R.layout.customprogressdialog);
        progresssDialog.setCanceledOnTouchOutside(false);
    }


    @Override
    public void onDestroy() {
        super.onDestroy();
        if (nonetDlg != null && nonetDlg.isShowing()) {
            nonetDlg.cancel();
        }
        if (chooseDlg != null && chooseDlg.isShowing()) {
            chooseDlg.cancel();
        }
    }

    public void dialogShow() {
        try {
            if (progresssDialog != null && !progresssDialog.isShowing()) {
                progresssDialog.show(null);
            }
        } catch (Exception e) {
            // TODO: handle exception
            System.err.println(e.toString());
        }
    }

    public void dialogShow(String message) {
        try {
            if (progresssDialog != null && !progresssDialog.isShowing()) {
                progresssDialog.show(message);
            }
        } catch (Exception e) {
            // TODO: handle exception
            System.err.println(e.toString());
        }
    }

    public void dismmisDialog() {
        if (progresssDialog != null && progresssDialog.isShowing()) {
            progresssDialog.dismiss();
        }
    }

}
*/
